# -------------------------------------------------------------------------------------- #
# --------------------------- 解决方案/可执行程序 ----------------------------------------- #
# -------------------------------------------------------------------------------------- #
message(STATUS "NOTES: Compile the executable!")
#-----------------------------------------#
# 生成可执行程序: 生成dll库和exe
#-----------------------------------------#
add_executable(${EXE_NAME} test1_example.cpp)
target_link_libraries(${EXE_NAME}
        PUBLIC ${LIB_NAME}
        )

# if(PARALLEL_ENABLE)
#     # 并行版编译编译选项
#     target_compile_options(${EXE_NAME} PRIVATE /openmp)
#     if (${CMAKE_BUILD_TYPE} STREQUAL Debug)
#         message(STATUS "Parallel debug")
#         target_link_libraries(${EXE_NAME}
#                 PUBLIC ${LIB_NAME}
#                 PUBLIC debug ${MKL_LIB} OpenMP::OpenMP_CXX ) # PRIVATE PUBLIC
#     else ()
#         message(STATUS "Parallel release")
#         target_link_libraries(${EXE_NAME}
#                 PUBLIC ${LIB_NAME}
#                 PUBLIC optimized ${MKL_LIB} OpenMP::OpenMP_CXX )
#     endif ()
# else()
#     message(STATUS "Sequential")
#     target_link_libraries(${EXE_NAME}
#             PUBLIC ${LIB_NAME}
#             PUBLIC ${MKL_LIB}
#             )
# endif()

